<template>
  <view class="loginPage">
    <img
      class="default"
      src="https://talentsupload.oss-cn-beijing.aliyuncs.com/miniprogram/login/loginDefault.png"
    />

    <view class="footer">
      <custom-ButtonGroup
        submitText="一键登录"
        width="calc(100% - 64rpx)"
        margin="0"
        @handleTap="handleLogin"
        v-if="privacyData.phone"
      />
      <custom-ButtonGroup
        v-else
        submitText="一键登录"
        width="calc(100% - 64rpx)"
        margin="0"
        type="phoneNumber"
        @phoneNumberChange="getPhoneNumber"
      />
      <custom-ButtonGroup
        submitText="取消登录"
        type="plain"
        color="#1C1F23"
        width="calc(100% - 64rpx)"
        margin="32rpx 0 72rpx"
        @handleTap="cancelLogin"
      />
    </view>

    <custom-UserInfoPopup ref="userInfoPopup" />
  </view>
</template>
<script src="./indexMod.js"></script>
<style src="./indexStyle.scss" lang="scss" scoped></style>